package com.wzw.springboot.principle.use.es.service;

import com.wzw.springboot.principle.use.es.model.UserIndex;
import com.wzw.springboot.principle.use.es.repository.UserIndexRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author Wangzhiwen
 */
@Service
@RequiredArgsConstructor
public class UserIndexService {

    private final UserIndexRepository userIndexRepository;

    public void testUserIndex() {
        UserIndex user = new UserIndex().setId(10000L).setName("wangzhiwen-spring").setSex("男").setEnabled(true);
        userIndexRepository.save(user);
    }

}
